<template>
    <Transition>
        <div class='y-modal d-flex justify-center align-center' v-show="show" @mousedown="false">
            <slot></slot>
        </div>
    </Transition>
</template>

<script setup lang="ts">
import { onMounted , ref} from 'vue';
defineProps(['show']);
defineEmits(['update:show']);

onMounted(()=>{
    
})
</script>

<style lang='less' scoped>
.v-enter-active,
.v-leave-active {
  transition: opacity 0.5s ease;
}

.v-enter-from,
.v-leave-to {
  opacity: 0;
}
.y-modal {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.4);
}
</style>